package com.example.blogbackend.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.websocket.server.PathParam;

@RestController
public class ArticleController {
    @GetMapping("/api")
    public String getArticle(@PathParam("page") String page, @PathParam("results") String results) {
        System.out.println(page);
        System.out.println(results);

        return "{\"results\":[{\"gender\":\"female\",\"name\":{\"title\":\"Miss\",\"first\":\"Mira\",\"last\":\"da Cruz\"},\"location\":{\"street\":{\"number\":5237,\"name\":\"Rua Pernambuco \"},\"city\":\"Araras\",\"state\":\"Goiás\",\"country\":\"Brazil\",\"postcode\":52299,\"coordinates\":{\"latitude\":\"-80.9056\",\"longitude\":\"35.3931\"},\"timezone\":{\"offset\":\"-5:00\",\"description\":\"Eastern Time (US & Canada), Bogota, Lima\"}},\"email\":\"mira.dacruz@example.com\",\"login\":{\"uuid\":\"b3048704-789e-49f6-95ba-bbe43fa29bf5\",\"username\":\"redpanda759\",\"password\":\"photos\",\"salt\":\"HL5J8Bev\",\"md5\":\"b5787161903ce67b674aab4f8956f413\",\"sha1\":\"3d04c3e14354edd91801f6c8ba71f1d490fd33e4\",\"sha256\":\"939e0a80182ddb63a09de8ccf91f629cb662dc83fb02814961dc6905823cccd5\"},\"dob\":{\"date\":\"1996-05-14T00:04:59.532Z\",\"age\":26},\"registered\":{\"date\":\"2007-12-03T15:02:29.037Z\",\"age\":15},\"phone\":\"(96) 1569-3453\",\"cell\":\"(48) 7695-3030\",\"id\":{\"name\":\"CPF\",\"value\":\"404.789.637-81\"},\"picture\":{\"large\":\"https://randomuser.me/api/portraits/women/21.jpg\",\"medium\":\"https://randomuser.me/api/portraits/med/women/21.jpg\",\"thumbnail\":\"https://randomuser.me/api/portraits/thumb/women/21.jpg\"},\"nat\":\"BR\"},{\"gender\":\"female\",\"name\":{\"title\":\"Ms\",\"first\":\"Leana\",\"last\":\"Rousseau\"},\"location\":{\"street\":{\"number\":4267,\"name\":\"Rue Barrier\"},\"city\":\"Saint-Denis\",\"state\":\"Savoie\",\"country\":\"France\",\"postcode\":95857,\"coordinates\":{\"latitude\":\"-8.2839\",\"longitude\":\"31.8090\"},\"timezone\":{\"offset\":\"+9:30\",\"description\":\"Adelaide, Darwin\"}},\"email\":\"leana.rousseau@example.com\",\"login\":{\"uuid\":\"57eb9f85-1407-406b-8fa5-cd26e8eee66d\",\"username\":\"heavytiger191\",\"password\":\"420000\",\"salt\":\"ATX4CKIX\",\"md5\":\"608531782a33ca4cf88dba26053126bb\",\"sha1\":\"ca82bba5a9ddfbd03944c27cb03d10872c8362d8\",\"sha256\":\"1eb6fe4a842f75f55807cbc162dc05a51aacda3b0a41fd8376f2d5bddf5a063f\"},\"dob\":{\"date\":\"1994-12-01T12:46:17.941Z\",\"age\":28},\"registered\":{\"date\":\"2014-08-31T02:58:04.106Z\",\"age\":8},\"phone\":\"03-50-40-55-96\",\"cell\":\"06-04-21-50-81\",\"id\":{\"name\":\"INSEE\",\"value\":\"2941106259916 08\"},\"picture\":{\"large\":\"https://randomuser.me/api/portraits/women/72.jpg\",\"medium\":\"https://randomuser.me/api/portraits/med/women/72.jpg\",\"thumbnail\":\"https://randomuser.me/api/portraits/thumb/women/72.jpg\"},\"nat\":\"FR\"},{\"gender\":\"male\",\"name\":{\"title\":\"Mr\",\"first\":\"Ved\",\"last\":\"Mathew\"},\"location\":{\"street\":{\"number\":6209,\"name\":\"Rasta Peth\"},\"city\":\"Mehsana\",\"state\":\"Bihar\",\"country\":\"India\",\"postcode\":69386,\"coordinates\":{\"latitude\":\"59.3302\",\"longitude\":\"163.4302\"},\"timezone\":{\"offset\":\"+5:00\",\"description\":\"Ekaterinburg, Islamabad, Karachi, Tashkent\"}},\"email\":\"ved.mathew@example.com\",\"login\":{\"uuid\":\"6bce798c-07e1-4e9b-b806-088fb073390d\",\"username\":\"lazyzebra163\",\"password\":\"123654\",\"salt\":\"r5HE0RTc\",\"md5\":\"43af2122c986ba0b2a8d847b297497d3\",\"sha1\":\"564b8b64a0f3f7ce433ba7ef42b28f9b669fbfe5\",\"sha256\":\"187ef6f9711ba391d8a301548f08ced44d323d7d9f2c0ecc2404d075f135f871\"},\"dob\":{\"date\":\"1987-02-17T15:38:29.234Z\",\"age\":35},\"registered\":{\"date\":\"2010-01-12T00:20:44.789Z\",\"age\":13},\"phone\":\"7790048659\",\"cell\":\"7613268101\",\"id\":{\"name\":\"UIDAI\",\"value\":\"658368857306\"},\"picture\":{\"large\":\"https://randomuser.me/api/portraits/men/74.jpg\",\"medium\":\"https://randomuser.me/api/portraits/med/men/74.jpg\",\"thumbnail\":\"https://randomuser.me/api/portraits/thumb/men/74.jpg\"},\"nat\":\"IN\"},{\"gender\":\"male\",\"name\":{\"title\":\"Mr\",\"first\":\"Simon\",\"last\":\"Brar\"},\"location\":{\"street\":{\"number\":4195,\"name\":\"Grand Ave\"},\"city\":\"Chipman\",\"state\":\"Yukon\",\"country\":\"Canada\",\"postcode\":\"Y1O 5U4\",\"coordinates\":{\"latitude\":\"-54.2057\",\"longitude\":\"-159.7063\"},\"timezone\":{\"offset\":\"+7:00\",\"description\":\"Bangkok, Hanoi, Jakarta\"}},\"email\":\"simon.brar@example.com\",\"login\":{\"uuid\":\"a48fe2a8-4f8a-49b9-aa4e-87fbb008f1b6\",\"username\":\"tinyladybug938\",\"password\":\"polish\",\"salt\":\"KsZFNSTG\",\"md5\":\"75263216306ad356bad89347bebbb729\",\"sha1\":\"6a9a6054e3071a57cf6ae2dd5530acf52d0abb0e\",\"sha256\":\"2bb10e73a2cea4ecfb9e68139ddccb9ba4e85ad44fcaedb4e8a53d9ea3f48f82\"},\"dob\":{\"date\":\"1966-01-04T05:51:38.246Z\",\"age\":57},\"registered\":{\"date\":\"2011-02-13T08:21:39.710Z\",\"age\":11},\"phone\":\"M93 A35-1328\",\"cell\":\"R53 C61-1740\",\"id\":{\"name\":\"SIN\",\"value\":\"941033698\"},\"picture\":{\"large\":\"https://randomuser.me/api/portraits/men/96.jpg\",\"medium\":\"https://randomuser.me/api/portraits/med/men/96.jpg\",\"thumbnail\":\"https://randomuser.me/api/portraits/thumb/men/96.jpg\"},\"nat\":\"CA\"},{\"gender\":\"female\",\"name\":{\"title\":\"Ms\",\"first\":\"Silje\",\"last\":\"Sørensen\"},\"location\":{\"street\":{\"number\":3492,\"name\":\"Lokesvej\"},\"city\":\"Ulsted, Hals\",\"state\":\"Midtjylland\",\"country\":\"Denmark\",\"postcode\":17925,\"coordinates\":{\"latitude\":\"44.5358\",\"longitude\":\"-116.4372\"},\"timezone\":{\"offset\":\"-7:00\",\"description\":\"Mountain Time (US & Canada)\"}},\"email\":\"silje.sorensen@example.com\",\"login\":{\"uuid\":\"be007da9-e0a3-463a-9212-a9d6acd9c519\",\"username\":\"heavybear701\",\"password\":\"denise\",\"salt\":\"yQa3WFWk\",\"md5\":\"d18155ee14bcc98147b20af116d314fa\",\"sha1\":\"74eff9cde41b7e33c7ab3d049884845c86d3d438\",\"sha256\":\"ef1f2c4ea2241dffcf9990e791624388599a9de6f13eea573470c110bfb0bf95\"},\"dob\":{\"date\":\"1996-06-14T13:48:50.934Z\",\"age\":26},\"registered\":{\"date\":\"2003-11-04T07:20:08.072Z\",\"age\":19},\"phone\":\"22771860\",\"cell\":\"36519458\",\"id\":{\"name\":\"CPR\",\"value\":\"140696-3684\"},\"picture\":{\"large\":\"https://randomuser.me/api/portraits/women/18.jpg\",\"medium\":\"https://randomuser.me/api/portraits/med/women/18.jpg\",\"thumbnail\":\"https://randomuser.me/api/portraits/thumb/women/18.jpg\"},\"nat\":\"DK\"},{\"gender\":\"female\",\"name\":{\"title\":\"Ms\",\"first\":\"Naslava\",\"last\":\"Grinchak\"},\"location\":{\"street\":{\"number\":6840,\"name\":\"Novozabarska\"},\"city\":\"Kam'yanka-Buzka\",\"state\":\"Volinska\",\"country\":\"Ukraine\",\"postcode\":32400,\"coordinates\":{\"latitude\":\"-66.5455\",\"longitude\":\"-100.5908\"},\"timezone\":{\"offset\":\"-7:00\",\"description\":\"Mountain Time (US & Canada)\"}},\"email\":\"naslava.grinchak@example.com\",\"login\":{\"uuid\":\"d1d683eb-94d8-4abb-8be7-e67f7f506825\",\"username\":\"smallsnake408\",\"password\":\"chick\",\"salt\":\"7mmtR8fS\",\"md5\":\"bada159919ab3a0f2b9f63468ead0ec1\",\"sha1\":\"739f36f42b144304da939258b8210b3decbfa11f\",\"sha256\":\"6813d9971f2591c65854ac6b9aee6bc92d73ccdc2825efb58c0cc10169e9c147\"},\"dob\":{\"date\":\"1980-04-06T07:38:03.016Z\",\"age\":42},\"registered\":{\"date\":\"2005-09-30T03:05:46.574Z\",\"age\":17},\"phone\":\"(096) Q41-0636\",\"cell\":\"(068) O23-3626\",\"id\":{\"name\":\"\",\"value\":null},\"picture\":{\"large\":\"https://randomuser.me/api/portraits/women/6.jpg\",\"medium\":\"https://randomuser.me/api/portraits/med/women/6.jpg\",\"thumbnail\":\"https://randomuser.me/api/portraits/thumb/women/6.jpg\"},\"nat\":\"UA\"},{\"gender\":\"male\",\"name\":{\"title\":\"Mr\",\"first\":\"Ronald\",\"last\":\"Stone\"},\"location\":{\"street\":{\"number\":7794,\"name\":\"Mill Lane\"},\"city\":\"Celbridge\",\"state\":\"Donegal\",\"country\":\"Ireland\",\"postcode\":25285,\"coordinates\":{\"latitude\":\"-53.0219\",\"longitude\":\"125.8927\"},\"timezone\":{\"offset\":\"-6:00\",\"description\":\"Central Time (US & Canada), Mexico City\"}},\"email\":\"ronald.stone@example.com\",\"login\":{\"uuid\":\"a861a11c-70ef-4d9a-8b24-953ae8ce9008\",\"username\":\"yellowdog244\",\"password\":\"photo\",\"salt\":\"JGcnw5YY\",\"md5\":\"63d1524c9e04e64f6c995c8b93c9d2d2\",\"sha1\":\"3c38136d5e6fc719391590d0c31f33777d742273\",\"sha256\":\"e95c9c7bb11269e9cc07c7ccb647c9ca62d04595557a8dc5a78e1af37686b9a6\"},\"dob\":{\"date\":\"1957-12-27T11:29:48.915Z\",\"age\":65},\"registered\":{\"date\":\"2002-05-29T09:52:13.736Z\",\"age\":20},\"phone\":\"061-196-2113\",\"cell\":\"081-671-1334\",\"id\":{\"name\":\"PPS\",\"value\":\"1196991T\"},\"picture\":{\"large\":\"https://randomuser.me/api/portraits/men/80.jpg\",\"medium\":\"https://randomuser.me/api/portraits/med/men/80.jpg\",\"thumbnail\":\"https://randomuser.me/api/portraits/thumb/men/80.jpg\"},\"nat\":\"IE\"},{\"gender\":\"male\",\"name\":{\"title\":\"Mr\",\"first\":\"Alexandre\",\"last\":\"Harris\"},\"location\":{\"street\":{\"number\":4119,\"name\":\"15th St\"},\"city\":\"Cumberland\",\"state\":\"Newfoundland and Labrador\",\"country\":\"Canada\",\"postcode\":\"Q7W 5G3\",\"coordinates\":{\"latitude\":\"16.3935\",\"longitude\":\"-37.4733\"},\"timezone\":{\"offset\":\"-2:00\",\"description\":\"Mid-Atlantic\"}},\"email\":\"alexandre.harris@example.com\",\"login\":{\"uuid\":\"cae46b7e-d8dc-47f6-a154-9ede288c73ed\",\"username\":\"whiterabbit158\",\"password\":\"789456\",\"salt\":\"nOC41bLG\",\"md5\":\"decf5ddd01e2686de4fce01125a8d9f2\",\"sha1\":\"ade4818d37d2a860a5dda9241ed2b652a5535163\",\"sha256\":\"95d89943a54b41b7bef357ff3028d39fd812ec12def37d6dcdc2e461c9c22a1f\"},\"dob\":{\"date\":\"1957-05-29T18:06:00.942Z\",\"age\":65},\"registered\":{\"date\":\"2016-08-22T04:12:07.952Z\",\"age\":6},\"phone\":\"N42 B89-7848\",\"cell\":\"A14 Z22-0867\",\"id\":{\"name\":\"SIN\",\"value\":\"732628482\"},\"picture\":{\"large\":\"https://randomuser.me/api/portraits/men/75.jpg\",\"medium\":\"https://randomuser.me/api/portraits/med/men/75.jpg\",\"thumbnail\":\"https://randomuser.me/api/portraits/thumb/men/75.jpg\"},\"nat\":\"CA\"},{\"gender\":\"male\",\"name\":{\"title\":\"Mr\",\"first\":\"Owen\",\"last\":\"Baker\"},\"location\":{\"street\":{\"number\":1480,\"name\":\"College St\"},\"city\":\"Toowoomba\",\"state\":\"Western Australia\",\"country\":\"Australia\",\"postcode\":8791,\"coordinates\":{\"latitude\":\"73.5370\",\"longitude\":\"164.8037\"},\"timezone\":{\"offset\":\"-3:30\",\"description\":\"Newfoundland\"}},\"email\":\"owen.baker@example.com\",\"login\":{\"uuid\":\"357e516b-0ec8-4c24-b0ae-1333cb2ea16a\",\"username\":\"whitebutterfly603\",\"password\":\"preston\",\"salt\":\"2IjU03mu\",\"md5\":\"9e31f583e57e184f6b4afab901b43959\",\"sha1\":\"dd4a2a44f0f233803bec6b60585b94a69a517d43\",\"sha256\":\"c5787ebf62a1b61202cc588bdcb5b339097b4f49618a57725668dd8f08fabacd\"},\"dob\":{\"date\":\"1957-09-25T17:01:23.550Z\",\"age\":65},\"registered\":{\"date\":\"2005-09-05T03:47:35.229Z\",\"age\":17},\"phone\":\"05-8849-8918\",\"cell\":\"0464-195-407\",\"id\":{\"name\":\"TFN\",\"value\":\"600109415\"},\"picture\":{\"large\":\"https://randomuser.me/api/portraits/men/63.jpg\",\"medium\":\"https://randomuser.me/api/portraits/med/men/63.jpg\",\"thumbnail\":\"https://randomuser.me/api/portraits/thumb/men/63.jpg\"},\"nat\":\"AU\"},{\"gender\":\"male\",\"name\":{\"title\":\"Mr\",\"first\":\"Duarte\",\"last\":\"Fogaça\"},\"location\":{\"street\":{\"number\":271,\"name\":\"Rua Castro Alves \"},\"city\":\"Mossoró\",\"state\":\"Roraima\",\"country\":\"Brazil\",\"postcode\":69502,\"coordinates\":{\"latitude\":\"11.5993\",\"longitude\":\"-118.0748\"},\"timezone\":{\"offset\":\"+5:00\",\"description\":\"Ekaterinburg, Islamabad, Karachi, Tashkent\"}},\"email\":\"duarte.fogaca@example.com\",\"login\":{\"uuid\":\"e78d5ad6-ea93-4b2a-a613-f334bf1b3cd5\",\"username\":\"yellowcat272\",\"password\":\"footjob\",\"salt\":\"IqD0hzUG\",\"md5\":\"02cacd89706425726aad29b1ef739f4c\",\"sha1\":\"63c389f95b3acf013f24c52e86015ff6135434c9\",\"sha256\":\"e86bf912848b41ec63c4d4019eac379949d2685ebf6fd67d8734fc1b45379270\"},\"dob\":{\"date\":\"1991-08-08T00:57:42.624Z\",\"age\":31},\"registered\":{\"date\":\"2020-12-23T23:02:50.521Z\",\"age\":2},\"phone\":\"(14) 1080-0634\",\"cell\":\"(60) 4413-9781\",\"id\":{\"name\":\"CPF\",\"value\":\"450.214.210-45\"},\"picture\":{\"large\":\"https://randomuser.me/api/portraits/men/30.jpg\",\"medium\":\"https://randomuser.me/api/portraits/med/men/30.jpg\",\"thumbnail\":\"https://randomuser.me/api/portraits/thumb/men/30.jpg\"},\"nat\":\"BR\"}]}";

    }
}
